package com.itheima.reggie.mapper;

import com.itheima.reggie.entity.OrderDetail;
import com.itheima.reggie.entity.ShoppingCart;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

import java.util.List;

public interface OrderDetailMapper {
    //添加数据
    Integer save(@Param("orderDetailList") List<OrderDetail> orderDetailList);

    //查询订单明细表数据
    @Select("select * from order_detail where order_id = #{oid}")
    List<OrderDetail> findOrderDetailById(Long oid);
}
